package com.shujiaotong.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
@ApiModel(value="Orders对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "下单用户")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "商品编号")
    @TableField("shop_id")
    private Long shopId;

    @ApiModelProperty(value = "商品数量")
    @TableField("shop_count")
    private Integer shopCount;

    @ApiModelProperty(value = "收款金额")
    @TableField("account")
    private BigDecimal account;

    @ApiModelProperty(value = "订单状态:1.待付款 2已完成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @TableField("shop_name")
    private String shopName;

    @TableField("image")
    private String image;

    @ApiModelProperty(value = "商品单价")
    @TableField("price")
    private BigDecimal price;

    @TableField("order_id")
    private Long orderId;

    @TableField(exist = false)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private LocalDateTime endTime;

    @TableField(exist = false)
    private String description;
}
